#ifdef __cplusplus
extern "C" {
#endif


#include "__wstr.h"
#include <string.h>
#include <malloc.h>

void __begheader(__wstr, initialize)
	wchar_t * _tValue
__begbody
	__this(__wstr)->mLength = wcslen(_tValue);
	__this(__wstr)->mValue = (wchar_t *)malloc(__this(__wstr)->mLength * sizeof(wchar_t));
	memset(__this(__wstr)->mValue, '\0', __this(__wstr)->mLength * sizeof(wchar_t));
	memcpy(__this(__wstr)->mValue, _tValue, __this(__wstr)->mLength * sizeof(wchar_t));
__endbody

bool __voidheader(__wstr, equal)
    __wstr * _tWStr
__begbody
    __wstr * wstr = (__wstr *)__this(__wstr);
    if(!wcscmp(wstr->mValue, _tWStr->mValue))
	{
		return true;
	}
	return false;
__endbody

#ifdef __cplusplus
}
#endif

